package com.lc.stock.module.selectstockresult.domain;

import cn.afterturn.easypoi.excel.annotation.ExcelTarget;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.index.Indexed;
import org.springframework.data.mongodb.core.mapping.Document;

import java.io.Serializable;
import java.util.List;

/**
 * @author lichen
 * @description
 * @menu
 * @date 2023/2/6 16:58
 */
@Document(collection = "select_stock_result")
@Data
@Accessors(chain = true)
@NoArgsConstructor
@AllArgsConstructor
@ExcelTarget("selectStockResult")
public class SelectStockResult implements Serializable {

    private static final long serialVersionUID = 1L;
    @Id
    private String _id;
    /**
     * 选股日期
     */
    @Indexed
    private String selectStockDate;
    /**
     * 选中的股票信息
     */
    private List<SelectStockResultDetails> list;
}
